package com.zjxd.business.web.model.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class TBFunds implements Serializable {
    private Long fundsid;

    private BigDecimal fee;

    private BigDecimal balance;

    private Long userid;
    private String username;

    private Date createtime;
    private String createtimes;

    private Long fundstype;
    private String fundstypes;

    private static final long serialVersionUID = 1L;

    public Long getFundsid() {
        return fundsid;
    }

    public void setFundsid(Long fundsid) {
        this.fundsid = fundsid;
    }

    public BigDecimal getFee() {
        return fee;
    }

    public void setFee(BigDecimal fee) {
        this.fee = fee;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Long getFundstype() {
        return fundstype;
    }

    public void setFundstype(Long fundstype) {
        this.fundstype = fundstype;
        this.fundstypes = this.type(fundstype+"");
    }

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getCreatetimes() {
		return createtimes;
	}

	public void setCreatetimes(String createtimes) {
		this.createtimes = createtimes;
	}

	public String getFundstypes() {
		return fundstypes;
	}

	public void setFundstypes(String fundstypes) {
		this.fundstypes = fundstypes;
	}
	
	//0,充值，1消费，2余额返还，3扣除，4后台充值
	public static String type(String str){
		if(str==null || str.length()<=0){
			return null;
		}
		if("0".equals(str)){
			return "充值";
		}
		if("1".equals(str)){
			return "消费";
		}
		if("2".equals(str)){
			return "余额返还";
		}
		if("3".equals(str)){
			return "扣除";
		}
		if("4".equals(str)){
			return "后台充值";
		}
		return "暂无信息";
	}
}